import request from '@/utils/request'

// 查询码货任务单列表
export function getYardageGoodsTaskOrderList(query) {
  return request({
    url: '/inOutStock/yardageGoodsTaskOrder/list',
    method: 'get',
    params: query
  })
}


// 获取码货任务单详细信息
export function getYardageGoodsDetail(id) {
  return request({
    url: '/inOutStock/yardageGoodsTaskOrder/'+id,
    method: 'get',
  })
}

// 获取码货记录列表
export function getYardageGoodsRecordList(query) {
  return request({
    url: '/inOutStock/yardageGoodsRecord/list',
    method: 'get',
    params: query
  })
}

// 完成码货
export function complete(data) {
  return request({
    url: '/inOutStock/yardageGoodsTaskOrder/complete',
    method: 'post',
	data
  })
}

// 确认码货
export function confirm(data) {
  return request({
    url: '/inOutStock/yardageGoodsTaskOrder/confirm',
    method: 'post',
	data
  })
}